{{section name=loop loop=$list}}
	{{if $list[loop].type eq 'query'}}
	<table class="table table-bordered">
		<tr class="thead">
			<td colspan="{{$list[loop].fields|@count+1}}">
			  ◆ Query#{{$smarty.section.loop.index}}：{{$list[loop].sql}}
			</td>
		</tr>
		<tr class="thead">
			<td colspan="{{$list[loop].fields|@count+1}}">
			  ◆ affected rows：{{$list[loop].affected_rows}}
			</td>
		</tr>
		<tr class="ttitle">
			{{section name=loop2 loop=$list[loop].fields}}
			<th>{{$list[loop].fields[loop2]}}</th>
			{{/section}}
			{{if $list[loop].table neq ""}}
			<th>操作</th>
			{{/if}}
		</tr>
		<tbody>
			{{section name=loop3 loop=$list[loop].result}}
				<tr>
				{{foreach from=$list[loop].result[loop3] item=v key=k}}
					{{if $k neq "eg_base64_where"}}
					<td>{{$v}}</td>
					{{/if}}
				{{/foreach}}
					{{if $list[loop].table neq ""}}
					<td width="110">
						<a class='btn' href="index.php?app=tool&act=mysql&go=update&table={{$list[loop].table}}&eg_base64_where={{if $k=='eg_base64_where'}}{{$v}}{{/if}}&url_param={{$url_param}}">编辑</a>
						<a class='btn ajaxSubmit refresh' link="index.php?app=tool&act=mysql&go=delete&table={{$list[loop].table}}&eg_base64_where={{if $k eq "eg_base64_where"}}{{$v}}{{/if}}&url_param={{$url_param}}">删除</a>
					</td>
					{{/if}}
				</tr>
			{{/section}}
		</tbody>
	</table>
	{{/if}}
{{/section}}